<template>
    <div>
        <el-dialog  :close-on-click-modal="false" :title="mainDialog.title" :visible.sync="mainDialog.showDialog" width="80%" top="5vh" append-to-body>
            <div v-html="mainDialog.content"></div>
        </el-dialog>
    </div>
</template>

<script>
import {mergeFromObject} from "../../../core";

export default {
    name: 'SksHtmlMessagePromptDialog',
    data(){
        return {
            mainDialog:{},
            defaultMainDialog:{
                showDialog: false,
                title: '信息',
                content: '',
            },
        }
    },
    created() {
        this.initComponents()
    },
    methods: {
        initComponents(){
            this.mainDialog=mergeFromObject({},this.defaultMainDialog)
        },
        // 显示弹框
        show(data) {
            this.mainDialog=mergeFromObject({},this.defaultMainDialog,data)
            this.mainDialog.showDialog = true;
        },
    }
}
</script>

<style scoped>

</style>


<!--
        <SksHtmlMessagePromptDialog ref="sksHtmlMessagePromptDialogRef">

        </SksHtmlMessagePromptDialog>

            this.$refs.sksHtmlMessagePromptDialogRef.show({
                content: response.msg,
            })
-->
